Inherits from NSObject
Declared in IMSdk.h

Overview

Use this class to set the user specific demographic info.

Class Methods

getVersion

Use this to get the version of the SDK.

+ (NSString *)getVersion

Return Value

The version of the SDK.

Discussion

Use this to get the version of the SDK.

Declared In

IMSdk.h

initWithAccountID:

Initialize the sdk. This must be called before any other API for the SDK is used.

+ (void)initWithAccountID:(NSString *)accountID

Parameters

accountID

account id obtained from the InMobi portal.

Discussion

Initialize the sdk. This must be called before any other API for the SDK is used.

Declared In

IMSdk.h

setAge:

Provide the user’s age to the SDK for targetting purposes.

+ (void)setAge:(unsigned short)age

Parameters

age

The user’s age.

Discussion

Provide the user’s age to the SDK for targetting purposes.

Declared In

IMSdk.h

setAgeGroup:

Provide the user’s age group to the SDK for targetting purposes.

+ (void)setAgeGroup:(IMSDKAgeGroup)ageGroup

Parameters

ageGroup

The user’s age group.

Discussion

Provide the user’s age group to the SDK for targetting purposes.

Declared In

IMSdk.h

setAreaCode:

Provide the user’s area code to the SDK for targetting purposes.

+ (void)setAreaCode:(NSString *)areaCode

Parameters

areaCode

The user’s area code.

Discussion

Provide the user’s area code to the SDK for targetting purposes.

Declared In

IMSdk.h

setEducation:

Provide the user’s education status to the SDK for targetting purposes.

+ (void)setEducation:(IMSDKEducation)education

Parameters

education

The user’s education status.

Discussion

Provide the user’s education status to the SDK for targetting purposes.

Declared In

IMSdk.h

setEthnicity:

Provide the user’s ethnicity to the SDK for targetting purposes.

+ (void)setEthnicity:(IMSDKEthnicity)ethnicity

Parameters

ethnicity

The user’s ethnicity.

Discussion

Provide the user’s ethnicity to the SDK for targetting purposes.

Declared In

IMSdk.h

setGender:

Provide the user’s gender to the SDK for targetting purposes.

+ (void)setGender:(IMSDKGender)gender

Parameters

gender

The user’s gender.

Discussion

Provide the user’s gender to the SDK for targetting purposes.

Declared In

IMSdk.h

setHouseholdIncome:

Provide the user’s household income to the SDK for targetting purposes.

+ (void)setHouseholdIncome:(IMSDKHouseholdIncome)income

Parameters

income

The user’s household income.

Discussion

Provide the user’s household income to the SDK for targetting purposes.

Declared In

IMSdk.h

setIncome:

Provide the user’s income to the SDK for targetting purposes.

+ (void)setIncome:(unsigned int)income

Parameters

income

The user’s income.

Discussion

Provide the user’s income to the SDK for targetting purposes.

Declared In

IMSdk.h

setInterests:

Provide the user’s interests to the SDK for targetting purposes.

+ (void)setInterests:(NSString *)interests

Parameters

interests

The user’s interests.

Discussion

Provide the user’s interests to the SDK for targetting purposes.

Declared In

IMSdk.h

setLanguage:

Provide the user’s preferred language to the SDK for targetting purposes.

+ (void)setLanguage:(NSString *)language

Parameters

language

The user’s language.

Discussion

Provide the user’s preferred language to the SDK for targetting purposes.

Declared In

IMSdk.h

setLocation:

Provide the user’s location to the SDK for targetting purposes.

+ (void)setLocation:(CLLocation *)location

Parameters

location

The location of the user

Discussion

Provide the user’s location to the SDK for targetting purposes.

Declared In

IMSdk.h

setLocationWithCity:state:country:

Provide the user’s location to the SDK for targetting purposes.

+ (void)setLocationWithCity:(NSString *)city state:(NSString *)state country:(NSString *)country

Parameters

city

The user’s city.

state

The user’s state.

country

The user’s country.

Discussion

Provide the user’s location to the SDK for targetting purposes.

Declared In

IMSdk.h

setLogLevel:

Set the log level for SDK’s logs

+ (void)setLogLevel:(IMSDKLogLevel)desiredLogLevel

Parameters

desiredLogLevel

The desired level of logs.

Discussion

Set the log level for SDK’s logs

Declared In

IMSdk.h

setNationality:

Provide the user’s nationality to the SDK for targetting purposes.

+ (void)setNationality:(NSString *)nationality

Parameters

nationality

The user’s nationality.

Discussion

Provide the user’s nationality to the SDK for targetting purposes.

Declared In

IMSdk.h

setPostalCode:

Provide the user’s postal code to the SDK for targetting purposes.

+ (void)setPostalCode:(NSString *)postalcode

Parameters

postalcode

The user’s postalcode.

Discussion

Provide the user’s postal code to the SDK for targetting purposes.

Declared In

IMSdk.h

setYearOfBirth:

Provide a user’s date of birth to the SDK for targetting purposes.

+ (void)setYearOfBirth:(NSInteger)yearOfBirth

Parameters

yearOfBirth

The user’s date of birth.

Discussion

Provide a user’s date of birth to the SDK for targetting purposes.

Declared In

IMSdk.h